package 访问者模式;

public abstract class Visitor {
    protected String name;

    public void setName(String name) {
        this.name = name;
    }
    
    
    public abstract void visitor(MedicineA a);
    
    public abstract void visitor(MedicineB b);
}
